package com.example.entity;

import javax.management.relation.RoleInfo;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Set;

/**
 * User对象
 * 
 * @author Lgscofield
 */
public class UserInfo implements Serializable  {
	/**
	 * 
	 */
	private static final long serialVersionUID = -8354106727885168585L;

	/**
	 * 用户Id
	 */
	private String id;

	/**
	 * 账号
	 */
	private String userName;

	/**
	 * 真实姓名
	 */
	private String name;

	/**
	 * 一级部门
	 */
	private String deptName;

	/**
	 * 二级部门
	 */
	private String subDept;

	//add by sangkun
	/**
	 * 用户角色Id
	 */
	private String roleIds; //

	/**
	 * 用户的角色名称
	 */
	private String roleNames;//

	/**
	 * 管理组织
	 */
	private String manageOrg; //

	/**
	 * 功能权限
	 */
	private String funcPriority; //

	/**
	 * 数据权限
	 */
	private String assetPriority; //

	/**
	 * 邮件
	 */
	private String email;
	/**
	 * 移动电话
	 */
	private String tel; //
	/**
	 * 密码
	 */
	private String password;

	/**
	 * sessionId
	 */
	private String sessionId;

	/**
	 * 密码策略id
	 */
	private String pwdPolicyId;

	/**
	 * 创建者
	 */
	private String createUser;

	/**
	 * 创建时间
	 */
	private Timestamp createTime;

	/**
	 * 用户是否被锁定
	 */
	private String isLock;

	/**
	 * 是否被禁用
	 */
	private String isEnable;

	/**
	 * 福建用来保存BOMC用户ID。
	 */
	private String rsrvStr1;

	/**
	 * 预留字段，无意义
	 */
	private String rsrvStr2;
	private String rsrvStr3;
	private Timestamp rsrvDate1;
	private Timestamp rsrvDate2;

	/**
	 * 修改时间
	 */
	private Timestamp modifyTime;
	
	/**
	 * 删除时间
	 */
	private Timestamp deleteTime;
	
	/**
	 * 部门ID.
	 */
	private String orgId;

	private Set<RoleInfo> roleInfo;
	
	/**
	 * 组织名称
	 * @return
	 */
    private String orgName;
    
    private boolean checked;
    
    
	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public String getRoleIds() {
		return roleIds;
	}

	public void setRoleIds(String roleIds) {
		this.roleIds = roleIds;
	}

	/**
	 * @return the orgId
	 */
	public String getOrgId() {
		return orgId;
	}

	/**
	 * @param orgId the orgId to set
	 */
	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public Timestamp getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getIsLock() {
		return isLock;
	}

	public void setIsLock(String isLock) {
		this.isLock = isLock;
	}

	public String getIsEnable() {
		return isEnable;
	}

	public void setIsEnable(String isEnable) {
		this.isEnable = isEnable;
	}

	public String getSubDept() {
		return subDept;
	}

	public void setSubDept(String subDept) {
		this.subDept = subDept;
	}

	public String getPwdPolicyId() {
		return pwdPolicyId;
	}

	public void setPwdPolicyId(String pwdPolicyId) {
		this.pwdPolicyId = pwdPolicyId;
	}

	public String getRsrvStr1() {
		return rsrvStr1;
	}

	public void setRsrvStr1(String rsrvStr1) {
		this.rsrvStr1 = rsrvStr1;
	}

	public String getRsrvStr2() {
		return rsrvStr2;
	}

	public void setRsrvStr2(String rsrvStr2) {
		this.rsrvStr2 = rsrvStr2;
	}

	public String getRsrvStr3() {
		return rsrvStr3;
	}

	public void setRsrvStr3(String rsrvStr3) {
		this.rsrvStr3 = rsrvStr3;
	}

	public Timestamp getRsrvDate1() {
		return rsrvDate1;
	}

	public void setRsrvDate1(Timestamp rsrvDate1) {
		this.rsrvDate1 = rsrvDate1;
	}

	public Timestamp getRsrvDate2() {
		return rsrvDate2;
	}

	public void setRsrvDate2(Timestamp rsrvDate2) {
		this.rsrvDate2 = rsrvDate2;
	}

	public String getManageOrg() {
		return manageOrg;
	}

	public void setManageOrg(String manageOrg) {
		this.manageOrg = manageOrg;
	}

	public String getFuncPriority() {
		return funcPriority;
	}

	public void setFuncPriority(String funcPriority) {
		this.funcPriority = funcPriority;
	}

	public String getAssetPriority() {
		return assetPriority;
	}

	public void setAssetPriority(String assetPriority) {
		this.assetPriority = assetPriority;
	}

	public String getRoleNames() {
		return roleNames;
	}

	public void setRoleNames(String roleNames) {
		this.roleNames = roleNames;
	}

	public Set<RoleInfo> getRoleInfo() {
		return roleInfo;
	}
	
	public Timestamp getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Timestamp modifyTime) {
		this.modifyTime = modifyTime;
	}

	public void setRoleInfo(Set<RoleInfo> roleInfo) {
		this.roleInfo = roleInfo;
	}

	public Timestamp getDeleteTime() {
		return deleteTime;
	}

	public void setDeleteTime(Timestamp deleteTime) {
		this.deleteTime = deleteTime;
	}
	
	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	@Override
	public String toString() {
		return "UserInfo [id=" + id + ", userName=" + userName + ", name=" + name + ", deptName=" + deptName
				+ ", subDept=" + subDept + ", roleIds=" + roleIds + ", roleNames=" + roleNames + ", manageOrg="
				+ manageOrg + ", funcPriority=" + funcPriority + ", assetPriority=" + assetPriority + ", email=" + email
				+ ", tel=" + tel + ", password=" + password + ", sessionId=" + sessionId + ", pwdPolicyId="
				+ pwdPolicyId + ", createUser=" + createUser + ", createTime=" + createTime + ", isLock=" + isLock
				+ ", isEnable=" + isEnable + ", rsrvStr1=" + rsrvStr1 + ", rsrvStr2=" + rsrvStr2 + ", rsrvStr3="
				+ rsrvStr3 + ", rsrvDate1=" + rsrvDate1 + ", rsrvDate2=" + rsrvDate2 + ", modifyTime=" + modifyTime
				+ ", deleteTime=" + deleteTime + ", orgId=" + orgId + ", roleInfo=" + roleInfo + ", orgName=" + orgName
				+ ", checked=" + checked + "]";
	}
	
}
